<%@ page
    language="java"
    contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
%>
<%@ page
    isELIgnored="false"
%>
<%@include
    file="/WEB-INF/jsp/taglibs/taglibs_core.jsp"
%>
<stripes:layout-definition>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">

        <title>${title}</title>

        <meta name="description" content="${title}">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link
            rel="stylesheet"
            type="text/css"
            href="${contextPath}/css/html5-normalize.css"
        />

        <link
            rel="stylesheet"
            type="text/css"
            href="${contextPath}/css/html5-main.css"
        />

        <link
            rel="stylesheet"
            type="text/css"
            href="${contextPath}/css/template-main.css"
        />

        <!-- all other javascript files go at the end, before end body tag. -->
        <script src="${contextPath}/js/vendor/modernizr-2.6.2.min.js"></script>
     </head>

    <body class="body">
        <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->

        <div class="site_content">
            <div class="top_bar">
                <stripes:layout-component name="menu">
                    Welcome to I love my posts.
                </stripes:layout-component>
            </div>

            <!-- no p tags; included file has them and they don't nest. -->
            <div class="stripes_body"> <!-- start stripes body -->
                <stripes:layout-component
                    name="body"
                />
            </div> <!-- end stripes body -->
        </div>

        <stripes:useActionBean
            beanclass="com.objecteffects.template.web.action.UserEntityActionBean"
            event="setup"
            var="userEntityBean"
        />

        <div class="user_info">
            <c:choose>
                <c:when test="${not empty userEntityBean.userName}">
                    <span class="user_name">${userEntityBean.userName}</span>
                </c:when>
                <c:otherwise>
                    Not logged in.
                </c:otherwise>
            </c:choose>
            <c:choose>
                <c:when test="${not empty userEntityBean.tumblrName}">
                    <span class="user_name">${userEntityBean.tumblrName}</span>
                </c:when>
                <c:otherwise>
                    <span class="user_name">No tumblr name set.</span>
                </c:otherwise>
            </c:choose>
        </div>

        <footer class="logo">
            <span class="footer_left">&nbsp;</span>
            <a href="http://www.stripesframework.org/"><img
                src="images/stripesbuttonL-poweredby.gif" /></a>
        </footer>

        <stripes:layout-component
            name="js"
        />
    </body>
</html>
</stripes:layout-definition>
